﻿using System;
using System.Windows.Forms;

namespace LeChatApp
{
    public partial class SelectPort : Form
    {
        public bool isSubmitted { get; set; }
    
        public SelectPort()
        {
            InitializeComponent();
        }

        private void pressEnterToSubmit(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                btn_Submit_Click(sender, e);
        }

        private void btn_Submit_Click(object sender, EventArgs e)
        {
            isSubmitted = true;
            Close();
        }
    }
}
